package com.service.admin.team.controller.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.service.admin.member.enums.MemberEnums;
import com.service.core.rest.request.PageRequest;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import java.util.Date;

@Getter
@Setter
public class TeamPageReq extends PageRequest {

    @NotBlank(message = "会员账号不能为空")
    private String userAccount;

    private MemberEnums.Status memberStatus;

    private Integer coinsId;

    /**
     * 查询日期范围开始
     */
    @JsonFormat(timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 查询日期范围结束
     */
    @JsonFormat(timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date endTime;
}
